home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _9DD24C52B9CE44E285063EE7FB8EE563 < prev    next >
Encoding:
Text File  |  2004-06-23  |  1.2 KB  |  49 lines

  1. light("spot_shadowmap")
  2. {
  3.     pass()
  4.     {
  5.  
  6.         tmu()
  7.         {
  8.             texgen("spotlight")
  9.  
  10.             texture()
  11.             {
  12.                 shadowmap()
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.             }
  15.             ColorOp("arg1", "texture", "current", "current")
  16.         }
  17.  
  18.         tmu()
  19.         {
  20.             texgen("shadowmap_z")
  21.             texture()
  22.             {
  23.                 image("spot_z_inv.png")
  24.                 addressfunc("clamp", "clamp", "clamp")
  25.                 filtering("no_filtering")
  26.             }
  27.             colorop("mul", "texture", "current", "current")
  28.         }
  29.  
  30.         tmu()
  31.         {
  32.             TexGen("planar")
  33.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0) //nie ustawia siΩ w menu
  34.             texture()
  35.             {
  36.                 Image(%colortexture)
  37.                 addressfunc("clamp", "clamp", "clamp")
  38.             }
  39.             ColorOp("mul", "texture_a", "current", "current")
  40.             AlphaOp("arg2", "texture", "tfactor", "current")
  41.         }
  42.  
  43.         blendfunc("zero", "inv_src_color")
  44.         depthfunc("lequal", 0)
  45.         tfactor(0,0,0,0)
  46.         blackfog()
  47.     }
  48. }
  49.